package com.zuozuo.switchtest;


public class Demo1 {
    public static void main(String[] args) {
        Person p1=new Person();
        Person p2 = new Student();
        Student s = new Student();
        System.out.println((p1 instanceof Person));
        System.out.println((p2 instanceof Person));
        System.out.println((s instanceof Person));
        System.out.println((p1 instanceof Student));
        System.out.println((p2 instanceof Student));
        System.out.println((s instanceof Student));

    }
}